# coding=utf-8
from framework.base_page import BasePage

class EportsHomePage(BasePage):

    btn_quotation_list = "xpath=>"
    btn_template = ""

    btn_inquiry_list = "xpath=>//*[@id='root']/div/div/div/div[1]/div[1]/ul/li[2]"
    btn_owner_orders = "xpath=>//*[@id='root']/div/div/div/div[1]/div[1]/ul/li[3]"
    btn_agent_orders = ""
    # btn_billing = ""
    btn_customer = "xpath=>//*[@id='root']/div/div/div/div[1]/div[1]/ul/li[3]"

    btn_company_info = ""
    btn_permissions = ""
    btn_organization = ""
    btn_bank_account = ""
    btn_invitaiton = ""

    btn_user = "xpath=>//*[@id='root']/div/div/div/div[2]/div[1]/div[5]/div"
    btn_user_signout = "xpath=>/html/body/div[2]/div/div/div/div[2]/div/div/div/p[2]"
    btn_user_ok = "xpath=>/html/body/div[3]/div/div[2]/div/div[2]/div[3]/div/button[2]"


    def click_quotation_list(self):
        self.click(self.btn_quotation_list)
        self.sleep(2)

    def click_template(self):
        self.click(self.btn_template)
        self.sleep(2)

    def click_inquiry(self):
        self.click(self.btn_inquiry_list)
        self.sleep(2)

    def click_owner_orders(self):
        self.click(self.btn_owner_orders)
        self.sleep(2)

    def click_agent_orders(self):
        self.click(self.btn_agent_orders)
        self.sleep(2)

    def click_billing(self):
        self.click(self.btn_billing)
        self.sleep(2)

    def click_customer(self):
        self.click(self.btn_customer)
        self.sleep(2)

    def click_company_info(self):
        self.click(self.btn_company_info)
        self.sleep(2)

    def click_permissions(self):
        self.click(self.btn_permissions)
        self.sleep(2)

    def click_organization(self):
        self.click(self.btn_organization)
        self.sleep(2)

    def click_bank_account(self):
        self.click(self.btn_bank_account)
        self.sleep(2)

    def click_invitaiton(self):
        self.click(self.btn_invitaiton)
        self.sleep(2)

    def click_user(self):
        self.click(self.btn_user)
        self.sleep(2)
        
    def click_user_signout(self):
        self.click(self.btn_user_signout)

    def click_user_ok(self):
        self.click(self.btn_user_ok)
        self.sleep(2)

